package com.flex.core.model.swf
{
	import flash.display.LoaderInfo;
	import flash.display.Sprite;


	public class SWFInfo extends Sprite
	{
		public function SWFInfo(url:String, completeEvent:String)
		{
			var swf:Loader=new Loader();
			swf.load(new URLRequest(encodeURI(url)));
			swf.contentLoaderInfo.addEventListener(Event.COMPLETE, function():void
			{
				dispatchEvent(new Event(completeEvent));
			});
		}

		private var swf:LoaderInfo;

		public function SWFInfo(swf:LoaderInfo)
		{
			this.swf=swf;
		}

	}
}